package com.java110.intf.goods;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.shop.ShopAppraiseDto;
import com.java110.po.shop.ShopAppraisePo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IShopAppraiseInnerServiceSMO
 * @Description 商品评论接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-goods", configuration = {FeignConfiguration.class})
@RequestMapping("/shopAppraiseApi")
public interface IShopAppraiseInnerServiceSMO {


    @RequestMapping(value = "/saveShopAppraise", method = RequestMethod.POST)
    public int saveShopAppraise(@RequestBody ShopAppraisePo shopAppraisePo);

    @RequestMapping(value = "/updateShopAppraise", method = RequestMethod.POST)
    public int updateShopAppraise(@RequestBody  ShopAppraisePo shopAppraisePo);

    @RequestMapping(value = "/deleteShopAppraise", method = RequestMethod.POST)
    public int deleteShopAppraise(@RequestBody  ShopAppraisePo shopAppraisePo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param shopAppraiseDto 数据对象分享
     * @return ShopAppraiseDto 对象数据
     */
    @RequestMapping(value = "/queryShopAppraises", method = RequestMethod.POST)
    List<ShopAppraiseDto> queryShopAppraises(@RequestBody ShopAppraiseDto shopAppraiseDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param shopAppraiseDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryShopAppraisesCount", method = RequestMethod.POST)
    int queryShopAppraisesCount(@RequestBody ShopAppraiseDto shopAppraiseDto);
}
